<template>
  <el-progress :percentage="progress" :color="customColorMethod" />
</template>

<script lang="ts" setup>
defineProps({
    progress: {
        type: Number,
    }
})

const customColorMethod = (percentage: number) => {
    if (percentage < 60) {
        return '#B9CDB7' 
    }
    if (percentage < 99) {
        return '#EA9770'
    }
    return '#67c23a'
}

</script>
<style lang="scss">
.progress{}
</style>